<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Menú principal</title>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/style/makovo-style.css" />
<link rel="Stylesheet"
	href="<%=request.getContextPath()%>/style/T-Font.css" />
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/style/t-style.css" type="text/css" />
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/style/mkv/jquery-ui.css"
	type="text/css" />

<script type="text/javascript"
	src="<%=request.getContextPath()%>/scripts/jquery-2.1.3.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/scripts/jquery-ui-1.9.2.custom.min.js"></script>

<script type="text/javascript"
	src="<%=request.getContextPath()%>/scripts/gen.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/scripts/auxiliares.js"></script>

<script type="text/javascript">
$(function() {
	if(validaSesion("${sessionScope.LoginMenu}"))
		document.location="index.jsp";
	$("#t-User").dialog({
		autoOpen : false,
		resizable : false,
		height : 140,
		modal : true,
		buttons : {
			'Cerrar' : function() {
				$(this).dialog("open");
			}
		}
	});
	MostrarMenu();

});

function MostrarMenu(){
	var URI = "<%=request.getContextPath()%>/Menus/${sessionScope.LoginMenu}";

		$('#contenidoMenu').load(URI);
	}
</script>
</head>
<body>
	<div style="width:1100px; margin:0 auto">
		<div class="headerMK">
			<div class="logo">
				<span class="hdTitulo">Sistema para Aplicación de Subsidio
					2015</span>
			</div>
			<div
				style="font-size: 0.26em; top: -50px; position: relative; width: 500px; float: right; text-align: right; padding-right: 10px">
				<i>${sessionScope.LoginNombre}</i>
				<s:form action="">
					<b><a href="/makovo/paginas/index.jsp"> - Cerrar Sesión</a></b>
				</s:form>
			</div>
		</div>
		<div class="divContenido">
			<div style="margin: 0 auto; width: 600px; text-align: center;">
				<h3>Menú Principal</h3>
			</div>
			<div id="contenidoMenu"></div>
		</div>
	</div>
</body>
</html>